home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
New Star Software Collection
/
NSS_Collection.iso
/
3-170 dbase 10 for windows
/
1.ima
/
SAMPLES.PAK
/
WINAPI.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-26
|
31KB
|
758 lines
*******************************************************************************
* FILE: Winapi.h
*
* WRITTEN BY: Borland Late Night Crew
*
* DATE: 7/15/93
*
* UPDATED:
*
* VERSION: Alpha α
*
* DESCRIPTION: This file contains Windows API function declarations
* for calls to the Windows API from Bladerunner.
*
*******************************************************************************
#define NULL 0
#define FALSE 0
#define TRUE 1
#define CBYTE CWORD && because a minimum of a CWORD is read anyway
#define RGB(r,g,b) (r + g*256 + b*65536)
*** External Function Declarations
***************** Drawing and Windowing functions
extern CWORD AnyPopup(CVOID) user.exe
extern CWORD Arc ( CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD ArrangeIconicWindows(CWORD) user.exe
extern CWORD BitBlt ( CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CLONG ) GDI.EXE
extern CWORD CascadeChildWindows(CWORD,CWORD) user.exe
extern CWORD Chord ( CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CVOID CloseWindow( CWORD ) USER.EXE
extern CWORD CombineRgn ( CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD CopyCursor ( CWORD,CWORD ) USER.EXE
extern CWORD CreateCompatibleDC(CWORD) gdi.exe
extern CWORD CreateCursor(CWORD,CWORD,CWORD,CWORD,CWORD,CPTR,CPTR) gdi.exe
extern CWORD CreateEllipticRgn ( CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD CreateHatchBrush ( CWORD,CLONG ) GDI.EXE
extern CWORD CreatePatternBrush ( CWORD ) GDI.EXE
extern CWORD CreatePen ( CWORD,CWORD,CPTR ) GDI.EXE
extern CWORD CreateRectRgn ( CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD CreateRoundRectRgn ( CWORD,CWORD,CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD CreateSolidBrush ( CLONG ) GDI.EXE
extern CWORD DeleteDc ( CWORD ) GDI.EXE
extern CWORD DeleteObject ( CWORD ) GDI.EXE
extern CWORD DestroyCursor ( CWORD ) USER.EXE
extern CWORD DestroyIcon ( CWORD ) USER.EXE
extern CWORD DrawIcon ( CWORD,CWORD,CWORD,CWORD ) USER.EXE
extern CWORD Ellipse ( CWORD,CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD EqualRgn ( CWORD,CWORD ) GDI.EXE
extern CWORD ExcludeClipRect ( CWORD,CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD ExcludeUpdateRgn ( CWORD,CWORD ) USER.EXE
extern CWORD ExtFloodFill ( CWORD,CWORD,CWORD,CLONG,CWORD ) GDI.EXE
extern CWORD FillRgn ( CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD FlashWindow ( CWORD,CWORD ) USER.EXE
extern CWORD FloodFill ( CWORD,CWORD,CWORD,CLONG ) GDI.EXE
extern CWORD FindWindow(CPTR,CPTR) user.exe
extern CWORD FrameRgn ( CWORD,CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CLONG GetBitmapDIMENSION ( CWORD ) GDI.EXE
extern CLONG GetBkColor ( CWORD ) GDI.EXE
extern CWORD GetBkMode ( CWORD ) GDI.EXE
extern CLONG GetBrushORG ( CWORD ) GDI.EXE
extern CWORD GetCharWidth ( CWORD,CWORD,CWORD,CPTR ) GDI.EXE
extern CLONG GetCurrentPosition ( CWORD ) GDI.EXE
extern CWORD GetCursor ( CVOID ) USER.EXE
extern CVOID GetCursorPos ( CPTR ) USER.EXE
extern CWORD GetDc ( CWORD ) USER.EXE
extern CLONG GetDcOrg ( CWORD ) GDI.EXE
extern CWORD GetDeskTopWindow ( CVOID ) USER.EXE
extern CLONG GetDialogBaseUnits(CVOID) user.exe
extern CWORD GetFocus ( CVOID ) USER.EXE
extern CWORD GetNextWindow ( CWORD,CWORD ) USER.EXE
extern CWORD GetParent ( CWORD ) USER.EXE
extern CLONG GetPixel ( CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD GetPolyFillMode ( CWORD ) GDI.EXE
extern CWORD GetStockObject ( CWORD ) GDI.EXE
extern CWORD GetStretchBltMode ( CWORD ) GDI.EXE
extern CLONG GetSysColor ( CWORD ) USER.EXE
extern CWORD GetSysModalWindow ( CVOID ) USER.EXE
extern CWORD GetSystemPaletteEntries ( CWORD,CWORD,CWORD,CPTR ) GDI.EXE
extern CWORD GetSystemPaletteUse ( CWORD ) GDI.EXE
extern CLONG GetTabbedTextExtent ( CWORD,CPTR,CWORD,CWORD,CPTR ) USER.EXE
extern CWORD GetTextAlign ( CWORD ) GDI.EXE
extern CWORD GetTextCharacterExtra ( CWORD ) GDI.EXE
extern CLONG GetTextColor ( CWORD ) GDI.EXE
extern CLONG GetTextExtent ( CWORD,CPTR,CWORD ) GDI.EXE
extern CWORD GetTextExtentPoint ( CWORD,CPTR,CWORD,CPTR ) GDI.EXE
extern CWORD GetTextFace ( CWORD,CWORD,CPTR ) GDI.EXE
extern CWORD GetTextMetrics ( CWORD,CPTR ) GDI.EXE
extern CWORD GetTopWindow ( CWORD ) USER.EXE
extern CWORD GetUpdateRgn ( CWORD,CWORD,CWORD ) USER.EXE
extern CWORD GetWindow ( CWORD,CWORD ) USER.EXE
extern CWORD GetWindowDc ( CWORD ) USER.EXE
extern CLONG GetWindowExt ( CWORD ) GDI.EXE
extern CLONG GetWindowOrg ( CWORD ) GDI.EXE
extern CWORD GetWindowText ( CWORD,CPTR,CWORD ) USER.EXE
extern CWORD GetWindowTask(CWORD) user.exe
extern CWORD IntersectClipRect ( CWORD,CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CVOID InvalidateRgn ( CWORD,CWORD,CWORD ) USER.EXE
extern CWORD InvertRgn ( CWORD,CWORD ) GDI.EXE
extern CWORD IsChild ( CWORD,CWORD ) USER.EXE
extern CWORD IsIconIC ( CWORD ) USER.EXE
extern CWORD IsWindowVisible(CWORD) user.exe
extern CWORD LineTo ( CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD LoadBitmap ( CWORD,CPTR ) USER.EXE
extern CWORD LoadCursor ( CWORD,CLONG ) USER.EXE
extern CWORD LoadIcon ( CWORD,CLONG ) USER.EXE
extern CVOID MessageBeep ( CWORD ) USER.EXE
extern CWORD MessageBox ( CWORD,CPTR,CPTR,CWORD ) USER.EXE
extern CLONG MoveTo ( CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD OffsetClipRgn ( CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD OffsetRgn ( CWORD,CWORD,CWORD ) GDI.EXE
extern CLONG OffSetWindowOrg ( CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD OpenIcon ( CWORD ) USER.EXE
extern CWORD PaintRgn ( CWORD,CWORD ) GDI.EXE
extern CWORD PatBlt ( CWORD,CWORD,CWORD,CWORD,CWORD,CLONG ) GDI.EXE
extern CWORD Pie ( CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD PtInRegion ( CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD PtVisible ( CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD Rectangle ( CWORD,CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD ReleaseDc ( CWORD,CWORD ) USER.EXE
extern CWORD RestoreDc(CWORD,CWORD) gdi.exe
extern CWORD RoundRect ( CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD SaveDc(CWORD) gdi.exe
extern CWORD SekectClipRgn ( CWORD,CWORD ) GDI.EXE
extern CWORD SelectObject ( CWORD,CWORD ) GDI.EXE
extern CLONG SetBitmapDIMENSION ( CWORD,CWORD,CWORD ) GDI.EXE
extern CLONG SetBkColor ( CWORD,CLONG ) GDI.EXE
extern CWORD SetBkMode ( CWORD,CWORD ) GDI.EXE
extern CLONG SetBrushOrg ( CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD SetCursor ( CWORD ) USER.EXE
extern CVOID SetCursorPos ( CWORD,CWORD ) USER.EXE
extern CVOID SetDouvleClickTime ( CWORD ) USER.EXE
extern CWORD SetParent ( CWORD,CWORD ) USER.EXE
extern CLONG SetPixel ( CWORD,CWORD,CWORD,CLONG ) GDI.EXE
extern CWORD SetPolyFillMode ( CWORD,CWORD ) GDI.EXE
extern CVOID SetRectRgn ( CWORD,CWORD,CWORD,CWORD,CWORD ) GDI.EXE
extern CWORD SetStretchBltMode ( CWORD,CWORD ) GDI.EXE
extern CWORD SetSusModalWindow ( CWORD ) USER.EXE
extern CLONG SetWindowOrg(CWORD,CWORD,CWORD) gdi.exe
extern CVOID SetWindowText(CWORD,CPTR) user.exe
extern CWORD ShowCursor ( CWORD ) USER.EXE
extern CWORD ShowWindow(CWORD,CWORD) user.exe
extern CWORD StretchBlt ( CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CWORD,CLONG ) GDI.EXE
extern CVOID UpdateWindow ( CWORD ) USER.EXE
extern CVOID ValidateRgn ( CWORD,CWORD ) USER.EXE
*** Constant Graphing and Windowing Function Parameters
*******************************************************************************
********************** BitBlt() Raster Operation Types ************************
#define BLACKNESS htoi("00000042") &&* Turns all output black
#define DSTINVERT htoi("00550009") &&* Inverts destination
&& bitmap
#define MERGECOPY htoi("00C000CA") &&* Combines pattern and source
&& bitmap using Boolean AND
#define MERGEPAINT htoi("00BB0226") &&* Combines inverted source
&& with destination using
&& Boolean OR
#define NOTSRCCOPY htoi("00330008") &&* Copies inverted source
&& to destination
#define NOTSRCERASE htoi("001100A6") &&* Inverts result of combining
&& destination and source
&& bitmaps using Boolean OR
#define PATCOPY htoi("00F00021") &&* Copies pattern to
&& destination bitmap
#define PATINVERT htoi("005A0049") &&* Combines destination
&& bitmap with pattern using
&& Boolean XOR
#define PATPAINT htoi("00FB0A09") &&* Combines inverted source
&& with pattern using Boolean
&& OR. Combines result of this
&& operation with destination
&& using Boolean OR.
#define SRCAND htoi("008800C6") &&* Combines pixels of
&& destination and source
&& bitmaps using Boolean AND
#define SRCCOPY htoi("00CC0020") &&* Copies source bitmap to
&& destination bitmap
#define SRCERASE htoi("00440328") &&* Inverts destination bitmap
&& and combines result with
&& source bitmap using Boolean
&& AND
#define SRCINVERT htoi("00660046") &&* Combines pixels of
&& destination and source
&& bitmaps using Boolean XOR
#define SRCPAINT htoi("00EE0086") &&* Combines pixels of
&& destination and source
&& bitmaps using Boolean OR
#define WHITENESS htoi("00FF0062") &&* Turns all output white
************************* CombineRgn() command values *************************
#define RGN_AND 1
#define RGN_OR 2
#define RGN_XOR 3
#define RGN_DIFF 4
#define RGN_COPY 5
************************* CreateHatchBrush() hatch styles *********************
#define HS_BDIAGONAL 3
#define HS_CROSS 4
#define HS_DIAGCROSS 5
#define HS_FDIAGONAL 2
#define HS_HORIZONTAL 0
#define HS_VERTICAL 1
****************************** CreatePen() pen styles *************************
#define PS_DASH 1
#define PS_DASHDOT 3
#define PS_DASHDOTDOT 4
#define PS_DOT 2
#define PS_INSIDEFRAME 6
#define PS_NULL 5
#define PS_SOLID 0
************************** DrawText() drawing flags ***************************
#define DT_CHARSTREAM 4
#define DT_DISPFILE 6
#define DT_METAFILE 5
#define DT_PLOTTER 0
#define DT_RASCAMERA 3
#define DT_RASDISPLAY 1
#define DT_RASPRINTER 2
******************** GetDcEx() device context creation options ****************
#define DCX_CACHE htoi("00000002")
#define DCX_CLIPCHILDREN htoi("00000008")
#define DCX_CLIPSIBLINGS htoi("00000010")
#define DCX_EXCLUDERGN htoi("00000040")
#define DCX_INTERSECTRGN htoi("00000080")
#define DCX_LOCKWINDOWUPDATE htoi("00000400")
#define DCX_PARENTCLIP htoi("00000020")
#define DCX_USESTYLE htoi("00010000")
#define DCX_WINDOW htoi("00000001")
************************ GetStockObject() stock object types ******************
#define BLACK_BRUSH 4
#define DKGRAY_BRUSH 3
#define GRAY_BRUSH 2
#define HOLLOW_BRUSH 5
#define LTGRAY_BRUSH 1
#define NULL_BRUSH 5
#define WHITE_BRUSH 0
************************** ExtFloodFill() style flags *************************
#define FLOODFILLBORDER 0
#define FLOODFILLSURFACE 1
************************** GetBkMode() background modes ***********************
#define TRANSPARENT 1
#define OPAQUE 2
*********************** GetSysColor() display elements ************************
#define COLOR_ACTIVEBORDER 10
#define COLOR_ACTIVECAPTION 2
#define COLOR_APPWORKSPACE 12
#define COLOR_BACKGROUND 1
#define COLOR_BTNFACE 15
#define COLOR_BTNSHADOW 16
#define COLOR_BTNTEXT 18
#define COLOR_CAPTIONTEXT 9
#define COLOR_GRAYTEXT 17
#define COLOR_HIGHLIGHT 13
#define COLOR_HIGHLIGHTTEXT 14
#define COLOR_INACTIVEBORDER 11
#define COLOR_INACTIVECAPTION 3
#define COLOR_MENU 4
#define COLOR_MENUTEXT 7
#define COLOR_SCROLLBAR 0
#define COLOR_WINDOW 5
#define COLOR_WINDOWFRAME 6
#define COLOR_WINDOWTEXT 8
#define COLOR_INACTIVECAPTIONTEXT 19
#define COLOR_BTNHIGHLIGHT 20
*************************** GetWindow() relationship flags ********************
#define GW_CHILD 5
#define GW_HWNDFIRST 0
#define GW_HWNDLAST 1
#define GW_HWNDNEXT 2
#define GW_HWNDPREV 3
#define GW_OWNER 4
******************** LoadBitmap() predefined Windows bitmaps ******************
#define OBM_CLOSE 32754
#define OBM_COMBO 32738
#define OBM_DNARROW 32752
#define OBM_DNARROWD 32742
#define OBM_LFARROW 32750
#define OBM_LFARROWD 32740
#define OBM_MNARROW 32739
#define OBM_REDUCE 32749
#define OBM_REDUCED 32746
#define OBM_RESTORE 32747
#define OBM_RESTORED 32744
#define OBM_RGARROW 32751
#define OBM_RGARROWD 32741
#define OBM_UPARROW 32753
#define OBM_UPARROWD 32743
#define OBM_ZOOM 32748
#define OBM_ZOOMD 32745
#define OBM_DNARROWI 32736
#define OBM_LFARROWI 32734
#define OBM_RGARROWI 32735
#define OBM_UPARROWI 32737
#define OBM_BTNCORNERS 32758
#define OBM_BTSIZE 32761
#define OBM_CHECK 32760
#define OBM_CHECKBOXES 32759
#define OBM_OLD_CLOSE 32767
#define OBM_OLD_DNARROW 32764
#define OBM_OLD_LFARROW 32762
#define OBM_OLD_REDUCE 32757
#define OBM_OLD_RESTORE 32755
#define OBM_OLD_RGARROW 32763
#define OBM_OLD_UPARROW 32765
#define OBM_OLD_ZOOM 32756
#define OBM_SIZE 32766
************************* LoadCursor() predefined Windows cursors *************
#define IDC_ARROW 32512
#define IDC_CROSS 32515
#define IDC_IBEAM 32513
#define IDC_ICON 32641
#define IDC_SIZE 32640
#define IDC_SIZENESW 32643
#define IDC_SIZENS 32645
#define IDC_SIZENWSE 32642
#define IDC_SIZEWE 32644
#define IDC_UPARROW 32516
#define IDC_WAIT 32514
************************* LoadIcon() predefined Windows icons *****************
#define IDI_APPLICATION 32512
#define IDI_ASTERISK 32516
#define IDI_EXCLAMATION 32515
#define IDI_HAND 32513
#define IDI_QUESTION 32514
************************ MessageBox() Dialog Types ****************************
#define MB_ABORTRETRYIGNORE htoi("0002") &&* Message box contains Abort,
&& Retry, Ignore pushbuttons
#define MB_APPLMODAL htoi("0000") &&* User must respond to the message
&& box before continuing work in
&& the parent window.
#define MB_DEFBUTTON1 htoi("0000") &&* The first button is the default
#define MB_DEFBUTTON2 htoi("0100") &&* The second button is the default
#define MB_DEFBUTTON3 htoi("0200") &&* The third button is the default
#define MB_ICONASTERISK htoi("0040") &&* Same as MB_ICONINFORMATION
#define MB_ICONEXCLAMATION htoi("0030") &&* Exclamation point icon appears
#define MB_ICONHAND htoi("0010") &&* Same as MB_ICONSTOP
#define MB_ICONINFORMATION MB_ICONASTERISK &&* A lower case "I" icon apperas
#define MB_ICONQUESTION htoi("0020") &&* A question mark icon appears
#define MB_ICONSTOP MB_ICONHAND &&* A stop-sign icon appears
#define MB_OK htoi("0000") &&* OK pushbutton
#define MB_OKCANCEL htoi("0001") &&* OK and Cancel pushbuttons
#define MB_RETRYCANCEL htoi("0005") &&* Retry and Cancel pushbuttons
#define MB_SYSTEMMODAL htoi("1000") &&* All applications are suspended
&& until the user responds to the
&& message box
#define MB_TASKMODAL htoi("2000") &&* Same as APPL_MODAL except that
&& all the top-level windows
&& belonging to the current task
&& are disabled if the parent
&& window is not specified
#define MB_YESNO htoi("0004") &&* Yes and No pushbuttons
#define MB_YESNOCANCEL htoi("0003") &&* Yes, No, Cancel pushbuttons
******************* MessageBox() Standard dialog button IDs ******************
#define IDOK 1
#define IDCANCEL 2
#define IDABORT 3
#define IDRETRY 4
#define IDIGNORE 5
#define IDYES 6
#define IDNO 7
**************************** StretchBlt() Modes *******************************
#define STRETCH_ANDSCANS 1
#define STRETCH_ORSCANS 2
#define STRETCH_DELETESCANS 3
***************************** Clipboard Functions *****************************
extern CWORD ChangeClipboardChain ( CWORD,CWORD ) USER.EXE
extern CWORD CloseClipboard ( CVOID ) USER.EXE
extern CWORD CountClipboardFormats ( CVOID ) USER.EXE
extern CWORD EmptyClipboard ( CVOID ) USER.EXE
extern CWORD EnumClipboardFormats ( CWORD ) USER.EXE
extern CPTR GetClipboardData ( CWORD ) USER.EXE
extern CWORD GetClipboardFormatName ( CWORD,CPTR,CWORD ) USER.EXE
extern CWORD GetClipboardOwner ( CVOID ) USER.EXE
extern CWORD GetClipboardViewer ( CVOID ) USER.EXE
extern CWORD GetOpenClipboardWindow ( CVOID ) USER.EXE
extern CWORD GetPriorityClipboardFormat ( CPTR,CWORD ) USER.EXE
extern CWORD IsClipboardFormatAvailable ( CWORD ) USER.EXE
extern CWORD OpenClipboard ( CWORD ) USER.EXE
extern CWORD RegisterClipboardFormat ( CPTR ) USER.EXE
extern CWORD SetClipboardData ( CWORD,CWORD ) USER.EXE
extern CWORD SetClipboardViewer ( CWORD ) USER.EXE
**************** SetClipboardData() system defined clipboard formats **********
#define CF_BITMAP 2
#define CF_DIB 8
#define CF_DIF 5
#define CF_DSPBITMAP htoi("0082")
#define CF_DSPMETAFILEPICT htoi("0083")
#define CF_DSPTEXT htoi("0081")
#define CF_METAFILEPICT 3
#define CF_OEMTEXT 7
#define CF_OWNERDISPLAY htoi("0080")
#define CF_PALETTE 9
#define CF_PENDATA 10
#define CF_RIFF 11
#define CF_SYLK 4
#define CF_TEXT 1
#define CF_TIFF 6
#define CF_WAVE 12
*** "Private" formats don't get GlobalFree()'d
#define CF_PRIVATEFIRST htoi("0200")
#define CF_PRIVATELAST htoi("02FF")
*** "GDIOBJ" formats do get DeleteObject()'d
#define CF_GDIOBJFIRST htoi("0300")
#define CF_GDIOBJLAST htoi("03FF")
************************** Miscellaneous Functions *****************************s
extern CWORD AccessResource ( CWORD,CWORD ) KRNL386.EXE
extern CWORD AddAtom(CPTR) krnl386.exe
extern CVOID CreateCaret(CWORD,CWORD,CWORD,CWORD) user.exe
extern CWORD DeleteAtom(CWORD) krnl386.exe
extern CVOID DestroyCaret(CVOID) user.exe
extern CWORD ExitWindows ( CLONG,CWORD ) USER.EXE
extern CWORD ExitWindowsExec (CPTR,CPTR ) USER.EXE
extern CVOID FatalAppExit ( CWORD,CPTR ) KRNL386.EXE
extern CWORD FindAtom(CPTR) krnl386.exe
extern CWORD FindResource ( CWORD,CPTR,CPTR ) KRNL386.EXE
extern CVOID FreeLibrary ( CWORD ) KRNL386.EXE
extern CVOID FreeModule(CWORD) krnl386.exe
extern CWORD FreeResource ( CWORD ) KRNL386.EXE
extern CWORD GetCaretBlinkTime(CVOID) user.exe
extern CWORD GetClassName ( CWORD,CPTR,CWORD ) USER.EXE
extern CWORD GetCurrentTask ( CVOID ) KRNL386.EXE
extern CWORD GetCurrentTime ( CVOID ) USER.EXE
extern CWORD GetDeviceCAPS ( CWORD,CWORD ) GDI.EXE
extern CWORD GetDriveType(CWORD) krnl386.exe
extern CPTR GetDosEnvironment ( CVOID ) KRNL386.EXE
extern CWORD GetDoubleClickTime ( CVOID ) USER.EXE
extern CLONG GetFreeSpace ( CWORD ) KRNL386.EXE
extern CWORD GetFreeSystemResourceS ( CWORD ) USER.EXE
extern CWORD GetInputState(CVOID) user.exe
extern CWORD GetKeyState( CWORD ) user.exe
extern CWORD GetKbCodePage(CVOID) Keyboard.drv
extern CWORD GetModuleFileName(CWORD,CPTR,CWORD) krnl386.exe
extern CWORD GetModuleHandle(CPTR) krnl386.exe
extern CWORD GetModuleUsage(CWORD) krnl386.exe
extern CWORD GetNumTaskS ( CVOID ) KRNL386.EXE
extern CWORD GetPrivateProfileInt ( CPTR,CPTR,CWORD,CPTR ) KRNL386.EXE
extern CWORD GetPrivateProfileString ( CPTR,CPTR,CPTR,CPTR,CWORD,CPTR ) KRNL386.EXE
extern CWORD GetProfileInt ( CPTR,CPTR,CWORD ) KRNL386.EXE
extern CWORD GetProfileString ( CPTR,CPTR,CPTR,CPTR,CWORD ) KRNL386.EXE
extern CWORD GetSystemDirectory ( CPTR,CWORD ) KRNL386.EXE
extern CWORD GetSystemMetrics ( CWORD ) USER.EXE
extern CBYTE GetTempDrive ( CPTR ) KRNL386.EXE
extern CLONG GetTickCount ( CVOID ) USER.EXE
extern CLONG GetTimerResolution ( CVOID ) USER.EXE
extern CLONG GetVersion ( CVOID ) KRNL386.EXE
extern CWORD GetWindowsDirectory ( CPTR,CWORD ) KRNL386.EXE
extern CLONG GetWinFlags ( CVOID ) KRNL386.EXE
extern CVOID HideCaret(CWORD) user.exe
extern CWORD IsTask ( CWORD ) KRNL386.EXE
extern CWORD IsWindow ( CWORD ) USER.EXE
extern CWORD IsWindowEnabled ( CWORD ) USER.EXE
extern CWORD IsWindowVisible ( CWORD ) USER.EXE
extern CWORD IsZoomed ( CWORD ) USER.EXE
extern CWORD LoadLibrary ( CPTR ) KRNL386.EXE
extern CWORD LoadModule ( CPTR,CPTR ) KRNL386.EXE
extern CWORD LoadResource ( CWORD,CWORD ) KRNL386.EXE
extern CWORD LoadString(CWORD,CWORD,CPTR,CWORD) user.exe
extern CWORD PostAppMessage ( CWORD,CWORD,CWORD,CLONG ) USER.EXE
extern CWORD PeekMessage ( CPTR,CWORD,CWORD,CWORD ) USER.EXE
extern CVOID ReplyMessage ( CLONG ) USER.EXE
extern CVOID SetCaretBlinkTime(CWORD) user.exe
extern CVOID SetCaretPos(CWORD,CWORD) user.exe
extern CLONG SendMessage ( CWORD,CWORD,CWORD,CLONG ) USER.EXE
extern CWORD SetHandleCount ( CWORD ) KRNL386.EXE
extern CVOID ShowCaret(CWORD) user.exe
extern CLONG SizeOFResource ( CWORD,CWORD ) KRNL386.EXE
extern CWORD PlaySound(CPTR,CWORD) mmsystem.dll
extern CWORD SwapMouseButton ( CWORD ) USER.EXE
extern CWORD SystemParametersInfo ( CWORD,CWORD,CPTR,CWORD ) USER.EXE
extern CWORD WinExec ( CPTR,CWORD ) KRNL386.EXE
extern CWORD WinHelp ( CWORD,CPTR,CWORD,CLONG ) USER.EXE
extern CWORD WritePrivateProfileString ( CPTR,CPTR,CPTR,CPTR ) KRNL386.EXE
extern CWORD WriteProfileString ( CPTR,CPTR,CPTR ) KRNL386.EXE
*** Constant Miscellaneous Function Parameters
*******************************************************************************
**************************** ExitWindows() error codes ************************
#define EW_RESTARTWINDOWS htoi("42")
#define EW_REBOOTSYSTEM htoi("43")
************************** FindResource() resource types **********************
#define RT_ACCELERATOR 9
#define RT_BITMAP 2
#define RT_CURSOR 1
#define RT_DIALOG 5
#define RT_FONT 8
#define RT_FONTDIR 7
#define RT_GROUP_CURSOR 12
#define RT_GROUP_ICON 14
#define RT_ICON 3
#define RT_MENU 4
#define RT_RCDATA 10
#define RT_STRING 6
*********************** GetDeviceCaps() device information options ************
#define ASPECTX 40
#define ASPECTXY 44
#define ASPECTY 42
#define BITSPIXEL 12
#define CLIPCAPS 36
#define COLORRES 108
#define CURVECAPS 28
#define DRIVERVERSION 0
#define HORZRES 8
#define HORZSIZE 4
#define LINECAPS 30
#define LOGPIXELSX 88
#define LOGPIXELSY 90
#define NUMBRUSHES 16
#define NUMCOLORS 24
#define NUMFONTS 22
#define NUMMARKERS 20
#define NUMPENS 18
#define NUMRESERVED 106
#define PDEVICESIZE 26
#define PLANES 14
#define POLYGONALCAPS 32
#define RASTERCAPS 38
#define SIZEPALETTE 104
#define TECHNOLOGY 2
#define TEXTCAPS 34
#define VERTRES 10
#define VERTSIZE 6
************************* GetFreeSystemResources() resource types ***************
#define GFSR_SYSTEMRESOURCES 1
#define GFSR_GDIRESOURCES 2
#define GFSR_USERRESOURCES 3
**************************** GetSystemMetrics() codes *************************
#define SM_CXSCREEN 0
#define SM_CYSCREEN 1
#define SM_CXVSCROLL 2
#define SM_CYHSCROLL 3
#define SM_CYCAPTION 4
#define SM_CXBORDER 5
#define SM_CYBORDER 6
#define SM_CXDLGFRAME 7
#define SM_CYDLGFRAME 8
#define SM_CYVTHUMB 9
#define SM_CXHTHUMB 10
#define SM_CXICON 11
#define SM_CYICON 12
#define SM_CXCURSOR 13
#define SM_CYCURSOR 14
#define SM_CYMENU 15
#define SM_CXFULLSCREEN 16
#define SM_CYFULLSCREEN 17
#define SM_CYKANJIWINDOW 18
#define SM_MOUSEPRESENT 19
#define SM_CYVSCROLL 20
#define SM_CXHSCROLL 21
#define SM_DEBUG 22
#define SM_SWAPBUTTON 23
#define SM_RESERVED1 24
#define SM_RESERVED2 25
#define SM_RESERVED3 26
#define SM_RESERVED4 27
#define SM_CXMIN 28
#define SM_CYMIN 29
#define SM_CXSIZE 30
#define SM_CYSIZE 31
#define SM_CXFRAME 32
#define SM_CYFRAME 33
#define SM_CXMINTRACK 34
#define SM_CYMINTRACK 35
#if (WINVER >= WIN3_1)
#define SM_CXDOUBLECLK 36
#define SM_CYDOUBLECLK 37
#define SM_CXICONSPACING 38
#define SM_CYICONSPACING 39
#define SM_MENUDROPALIGNMENT 40
#define SM_PENWINDOWS 41
#define SM_DBCSENABLED 42
#endif && WINVER >= WIN3_1
#define SM_CMETRICS 43
******************* GetWinFlags() system/memory configurations ****************
#define WF_887 htoi("0400")
#define WF_CPU086 htoi("0040")
#define WF_CPU186 htoi("0080")
#define WF_CPU286 htoi("0002")
#define WF_CPU386 htoi("0004")
#define WF_CPU486 htoi("0008")
#define WF_ENHANCED htoi("0020")
#define WF_LARGEFRAME htoi("0100")
#define WF_PAGING htoi("0800")
#define WF_PMODE htoi("0001")
#define WF_SMALLFRAME htoi("0200")
#define WF_STANDARD htoi("0010")
#define WF_WIN286 htoi("0010")
#define WF_WIN386 htoi("0020")
#define WF_WLO htoi("8000")
********************** ShellExecute() window display options ******************
#define SW_HIDE 0
#define SW_MAXIMIZE 3
#define SW_MINIMIZE 6
#define SW_NORMAL 1
#define SW_RESTORE 9
#define SW_SHOW 5
#define SW_SHOWMAXIMIZED 3
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMINNOACTIVE 7
#define SW_SHOWNA 8
#define SW_SHOWNOACTIVATE 4
#define SW_SHOWNORMAL 1
***************** SystemParametersInfo() parameters to query/set **************
#define SPI_GETBEEP 1
#define SPI_GETBORDER 5
#define SPI_GETFASTTASKSWITCH 35
#define SPI_GETGRIDGRANULARITY 18
#define SPI_GETICONTITLELOGFONT 31
#define SPI_GETICONTITLEWRAP 25
#define SPI_GETKEYBOARDDELAY 22
#define SPI_GETKEYBOARDSPEED 10
#define SPI_GETMENUDROPALIGNMENT 27
#define SPI_GETMOUSE 3
#define SPI_GETSCREENSAVEACTIVE 16
#define SPI_GETSCREENSAVETIMEOUT 14
#define SPI_ICONHORIZONTALSPACING 13
#define SPI_ICONVERTICALSPACING 24
#define SPI_LANGDRIVER 12
#define SPI_SETBEEP 2
#define SPI_SETBORDER 6
#define SPI_SETDESKPATTERN 21
#define SPI_SETDESKWALLPAPER 20
#define SPI_SETDOUBLECLICKTIME 32
#define SPI_SETDOUBLECLKHEIGHT 30
#define SPI_SETDOUBLECLKWIDTH 29
#define SPI_SETFASTTASKSWITCH 36
#define SPI_SETGRIDGRANULARITY 19
#define SPI_SETICONTITLELOGFONT 34
#define SPI_SETICONTITLEWRAP 26
#define SPI_SETKEYBOARDDELAY 23
#define SPI_SETKEYBOARDSPEED 11
#define SPI_SETMENUDROPALIGNMENT 28
#define SPI_SETMOUSE 4
#define SPI_SETMOUSEBUTTONSWAP 33
#define SPI_SETSCREENSAVEACTIVE 17
#define SPI_SETSCREENSAVETIMEOUT 15
********************** WinHelp() requested help types *************************
#define HELP_COMMAND htoi("0102")
#define HELP_CONTENTS htoi("0003")
#define HELP_CONTEXT htoi("0001")
#define HELP_CONTEXTPOPUP htoi("0008")
#define HELP_FORCEFILE htoi("0009")
#define HELP_HELPONHELP htoi("0004")
#define HELP_INDEX htoi("0003")
#define HELP_KEY htoi("0101")
#define HELP_MULTIKEY htoi("0201")
#define HELP_PARTIALKEY htoi("0105")
#define HELP_QUIT htoi("0002")
#define HELP_SETCONTENTS htoi("0005")
#define HELP_SETINDEX htoi("0005")
#define HELP_SETWINPOS htoi("0203")
****************************** End of Winapi.h ******************************